home *** CD-ROM | disk | FTP | other *** search
- // --------------------------------------------------------------------------------------
- // EDOHack.c
- //
- // Written by:
- // Don Arbow and Marc A. Raiser
- // donarb@edo-inc.com mraiser@edo-inc.com
- //
- // EveryDay Objects, Inc.
- // http://www.edo-inc.com
- //
- // When:
- // in one day - June 26, 1997
- //
- // Description:
- // This hack downloads a html file based upon the name of the program. It
- // then puts up a dialog that shows a list of all links in the file. Double-
- // clicking on an entry downloads that link and parses it and so on. The
- // program requires the InternetAccess extension, also known as SubWoofer.
- // It is available from Apple's web site, do a search on "SubWoofer".
- // --------------------------------------------------------------------------------------
-
- #include "EDOHack.h"
-
- #include "HackEvents.h"
- #include "HackMenus.h"
- #include "HackWindows.h"
- #include "FetchParseURL.h"
-
- Boolean done;
-
- void main() {
-
- Str255 fileName = "\phttp://";
- OSErr err = noErr;
-
- short numMasters = 4;
-
- InitGraf(&qd.thePort);
- InitFonts();
- InitWindows();
- InitMenus();
- InitCursor();
- TEInit();
- FlushEvents(everyEvent, 0);
- InitDialogs(nil);
-
- while (numMasters--)
- MoreMasters();
-
- MaxApplZone();
-
- BuildMenuBars();
-
- err = ReturnAppName(fileName);
-
- CreateWindow(fileName);
- QueryURL(fileName);
-
- done = false;
-
- while (!done) {
- EventLoop();
- }
- }